<include file="Public/header"/>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

<h1>修改个人信息：</h1>
<form name="f1"  method="post" action="update" enctype="multipart/form-data" class="form-horizontal">

    <input type="hidden" name="uid"  value="{$user.uid}"></input> <!-- 隐藏ID -->
    <div class="form-group">
    <label for="username" class="col-sm-2 control-label">用户名:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="username" name="username" placeholder="username"  value="{$user.username}">
    </div></div>
  
   

  <div class="form-group">
    <label for="stunum" class="col-sm-2 control-label">学号:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="stunum" name="stunum" placeholder="stunum" value="{$user.stunum}">
    </div></div>

  <div class="form-group">
    <label for="realname" class="col-sm-2 control-label">姓名:</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" id="realname" name="realneme" placeholder="realname" value="{$user.realname}">
    </div></div>

    <div class="form-group">
    <label for="tele" class="col-sm-2 control-label">电话:</label>
    <div class="col-sm-6">
    <input type="tel" class="form-control" id="tele" name="tele" placeholder="telephone" value="{$user.tele}"></input>
    </div></div>

   <div class="form-group">
    <label for="email" class="col-sm-2 control-label">邮箱:</label>
    <div class="col-sm-6">
    <input type="email" class="form-control" id="email" name="email" placeholder="Email" value="{$user.email}">
    </div></div>

    <div class="form-group">
    <label for="exampleInputFile" class="col-sm-2 control-label" >头像:</label>
    <div class="col-sm-6">
    <img src="__PUBLIC__/Uploads/photo/{$user.photo}" alt="图像不存在" class="img">
    <input type="file" id="exampleInputFile" name="photo">
    </div></div>

  <!--  <div class="form-group">
    <label class="col-sm-2 control-label">操作:</label>
    <div class="col-sm-6">
    <label class="radio-inline">
    <input type="radio"  id="inlineRadio1" name="state"value="0"
    <if condition="$user.state eq 0">checked</if>>禁用</label>
    <label class="radio-inline">
    <input type="radio"  id="inlineRadio2" name="state" value="1"
    <if condition="$user.state eq 1">checked</if>>普通</label>
    <label class="radio-inline">
    <input type="radio"  id="inlineRadio1" name="state"value="2"
    <if condition="$user.state eq 2">checked</if>>禁言</label>
    </div></div> --> 

    <div class="form-group">
    <div class="col-sm-offset-2 col-sm-6">
    <button type="submit" class="btn btn-default" >修改用户</button>
    </div></div>
    </form>
    </div>

<include file="Public/footer"/>